////////////////////////////////////////////////////////////////////////////////
// Z-Day Project File                                                         //
// -------------------------------------------------------------------------- //
// Filename:   /entities/weapons/weapon_chainsaw/shared.lua                   //
// Type:       Shared                                                         //
// Contents:   "Chainsaw" SWEP.                                               //
////////////////////////////////////////////////////////////////////////////////

if ( SERVER ) then
	AddCSLuaFile( "shared.lua" )
	SWEP.HoldType			= "melee"
end

if ( CLIENT ) then

	SWEP.PrintName			= "CHAINSAW"
	SWEP.Author				= "ZDAY"
	SWEP.Slot				= 1
	SWEP.SlotPos			= 1
	SWEP.ViewModelFlip		= false
	//SWEP.ViewModelFOV		= 60
	
end


SWEP.Base					= "weapon_zd_base"

SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.ViewModel              = "models/weapons/v_chainsa.mdl"
SWEP.WorldModel             = "models/weapons/w_chainsa.mdl"

SWEP.Weight					= 5
SWEP.AutoSwitchTo			= false
SWEP.AutoSwitchFrom			= false

SWEP.Primary.Recoil			= 0
SWEP.Primary.Damage			= 1
SWEP.Primary.Delay			= 0.01
SWEP.Primary.ClipSize       = 2000
SWEP.Primary.DefaultClip    = 2000
SWEP.Primary.Automatic       = true
SWEP.Primary.Ammo           = "AlyxGun"

SWEP.Secondary.Recoil		= 0.5
SWEP.Secondary.Damage		= 35
SWEP.Secondary.Delay		= 2
SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo			= "none"

SWEP.GunSmoke				= false

SWEP.Sounds					= { "physics/flesh/flesh_impact_bullet3.wav",
								"physics/flesh/flesh_impact_bullet4.wav",
								"physics/flesh/flesh_impact_bullet5.wav",
								"vehicles/airboat/fan_motor_shut_off1.wav" }

SWEP.KillString1             = "PULVERIZED"
SWEP.KillString2             = "with his chainsaw"

SWEP.Mode					= WEAPON_MELEE

SWEP.PrimaryTable 				= {}
SWEP.SecondaryTable				= {}

-- TODO: GET THIS INTO THE BASE SWEP AND WORKING!
